export default {
  //商铺名称列表
  loadShopList(callback) {
    Vue.http.get('/evaluate/seller/listdata.json').then( (response)=>{
      callback(response.data);
    });
  },
  //评价列表
  loadAssessList(params, callback) {
    Vue.http.get(   '/evaluate/listpage.json', {params: params}).then(function (response) {
      callback(response.data);
    });
  },
  //评价回收列表
  loadRecycleList(params, callback) {
    Vue.http.get(   '/evaluate/recycle/listpage.json', {params: params}).then(function (response) {
      callback(response.data);
    });
  },
  //删除评价
  loadAssessDelete(params,callback) {
    Vue.http.delete(   '/evaluate/recycle/'+params+'.json').then( (response)=> {
      callback(response.data);
    });
  },
  //还原评价
  loadAssessRecycle(params,callback) {
    Vue.http.put(   '/evaluate/restore/'+params+'.json').then( (response)=> {
      callback(response.data);
    });
  },
  //查询评价详情
  loadAssessDetail(params,callback) {
    Vue.http.get(   '/evaluate/detail/'+params+'.json').then( (response)=> {
      callback(response.data);
    });
  },
}
